from goods.models import SKUImage, SKU
from rest_framework import serializers

class SKUImageSerializerz(serializers.ModelSerializer):
    # sku = serializers.StringRelatedField(read_only=True)
    # sku_id=serializers.IntegerField()
    class Meta:
        model=SKUImage
        fields=['sku','image','id']


class SKUSimpleSerializers(serializers.ModelSerializer):
    class Meta:
        model=SKU
        fields= ['id','name']